﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="ItemView.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Item.ItemView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript">
        var jrddlOthers = new JskitRichDropDownList("jrddlOthers");
        jrddlOthers.setSelectAction("OthersOnSelect");
        function PageOnLoad() {
            jrddlOthers.deploy("ctl00_CPH_PageTitle_txt_Items", "ctl00_CPH_PageTitle_hid_items", "Ws/_Item.aspx?act=list", "ck", fixId("hid_CategoryKey"));
        }
        function OthersOnSelect(rKey) {
            jskitBulter.redirect('Admin/Content/Item/ItemView.aspx?id=' + rKey);
        }
    </script>
    <script type="text/javascript">
        function ShowItemDesc(sender, e) {
            var obj = $("#" + fixId("lab_Desc"));
            if (obj != null) {
                if (obj.className == "desc_box_hidden") {
                    obj.className = "desc_box_display";
                    sender.innerHTML = "&#9650;";
                } else {
                    obj.className = "desc_box_hidden";
                    sender.innerHTML = "&#9660;";
                }
            }
        }
    </script>
    <style type="text/css">
        .desc_box_display
        {
            display: block;
        }
        .desc_box_hidden
        {
            display: none;
        }
        .lab_expand span
        {
            color: #336699;
            font-weight: bold;
            cursor: pointer;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
    <table width="960px" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <div style="width:320px">
                    <asp:Label runat="server" ID="lab_ItemName" Font-Bold="true" ForeColor="#000000" Font-Size="18px"></asp:Label>
                </div>
            </td>
            <td>
                <span style="font-weight:normal;color:#336699;">选择其他：</span><asp:TextBox runat="server" ID="txt_Items" Width="340px" Font-Bold="false"></asp:TextBox>
                <asp:HiddenField runat="server" ID="hid_items" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <asp:HiddenField runat="server" ID="hid_ItemKey" />
    <asp:HiddenField runat="server" ID="hid_CategoryKey" />
    <table>
        <tr>
            <td valign="top">
                <div class="action_bar">
                    <asp:Button runat="server" ID="btn_Add" Text="增加同类对象" OnClick="btn_Add_Click" />
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btn_Edit" Text="编辑基本信息" OnClick="btn_Edit_Click" />
                </div>
                <fieldset style="width: 400px">
                    <legend>基本信息</legend>
                    <table class="item_view_base">
                        <tr>
                            <td class="ivb_body_title">
                                分类：
                            </td>
                            <td class="ivb_body_data">
                                <asp:HyperLink runat="server" ID="hl_Category"></asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td class="ivb_body_title">
                                编号：
                            </td>
                            <td class="ivb_body_data">
                                <asp:Label runat="server" ID="lab_ItemNo"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="ivb_body_title">
                                标签：
                            </td>
                            <td class="ivb_body_data">
                                <asp:Label runat="server" ID="lab_ItemTags"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="ivb_body_title">
                                更新：
                            </td>
                            <td class="ivb_body_data">
                                <asp:Label runat="server" ID="lab_UpdateDt"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <div style="height: 5px; font-size: 1px">
                    &nbsp;</div>
                <div class="action_bar">
                    <asp:Button runat="server" ID="btn_EditAtl" Text="编辑扩展信息" OnClick="btn_EditAtl_Click" />
                </div>
                <fieldset style="width: 400px">
                    <legend>扩展信息</legend>
                    <asp:Label runat="server" ID="lab_ExtInfo"></asp:Label>
                </fieldset>
                <div style="height: 5px; font-size: 1px">
                    &nbsp;</div>
            </td>
            <td valign="top">
                <div class="action_bar">
                    <asp:Button runat="server" ID="btn_Desc" Text="编辑备注" OnClick="btn_Desc_Click" />
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btn_Back" Text="返回" OnClick="btn_Back_Click" />
                </div>
                <fieldset style="width: 550px">
                    <legend>备注 [
                        <asp:Label runat="server" ID="lab_DescExpend" CssClass="lab_expand"></asp:Label>]</legend>
                    <asp:Label runat="server" ID="lab_Desc" CssClass="desc_box_display"></asp:Label>
                </fieldset>
                <div style="height: 5px; font-size: 1px">
                    &nbsp;</div>
                <fieldset style="width: 550px">
                    <legend>关联信息</legend>
                    <asp:Label runat="server" ID="lab_RefInfo"></asp:Label>
                </fieldset>
                <div style="height: 5px; font-size: 1px">
                    &nbsp;</div>
                <div class="action_bar">
                    <asp:Button runat="server" ID="btn_Files" Text="管理附件" OnClientClick="alert('建设中...');return false" />
                </div>
                <fieldset style="width: 550px">
                    <legend>附件</legend>
                    <asp:GridView ID="gvFile" runat="server" AutoGenerateColumns="false" CssClass="GridViewSmall"
                        DataKeyNames="FileKey" ShowHeader="false" ShowFooter="false">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <a target="_blank" href='<%# DataBinder.Eval(Container, "DataItem.FilePath")%>'>
                                        <%# DataBinder.Eval(Container, "DataItem.SrcName")%><%# DataBinder.Eval(Container, "DataItem.ExtName")%></a>
                                    (<%# DataBinder.Eval(Container, "DataItem.WeightTxt")%>)
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle CssClass="GridViewSmallRow" />
                        <AlternatingRowStyle CssClass="GirdViewSmallAlternatingRow" />
                        <EmptyDataRowStyle CssClass="GridViewEmptyDataRow" />
                        <EmptyDataTemplate>
                            没有可用的数据</EmptyDataTemplate>
                    </asp:GridView>
                </fieldset>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
    </table>
</asp:Content>
